<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="city" uri="/city_query" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%-- <link href="<%=request.getContextPath() %>/fare/css/base.css" rel="stylesheet" type="text/css" /> --%>
<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
    <link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">

<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />
<%-- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/grid.css"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/public.css"/> --%>
	<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/jquery-1.6.4.min.js"></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/fdc.js"></script>
</head>


<script type="text/javascript">
	$(function(){
		$('#depCity').querycity({
			'data' : citysFlight,
			'tabs' : labelFromcity
		});
		$('#arrCity').querycity({
			'data' : citysFlight,
			'tabs' : labelFromcity
		});
	});
	function createScript(){
		$.ajax({
			   type: "POST",
			   url: "createCityScriptAction!getAllCityInfo.action",
			   dataType:"text",
			   success: function(msg){
			     alert(msg);
			   }
			});
	}
	function createSingleScript(){
		var item = $("input[name='sourceId']:checked").val();
	/* 	if(typeof(item) == "undefined"){
			alert("请选择航空公司!");
		}else{ */
			$.ajax({
				   type: "POST",
				   url: "createCityScriptAction!getCityInfoByCompany.action",
				   data: "sourceId="+item,
				   dataType:"text",
				   success: function(msg){
					   alert(msg);
				   }
			});
		/* } */
		
	}
	function feichangzhun(){
		$.ajax({
			   url: "feiChangZhunParseAction!autoParse.action",
			   dataType:"text",
			   success: function(msg){
				   alert(msg);
			   }
		});
		
		
		
		
	}
</script>
<body>	
		<div style="display: block;">
			<button id="createButton" style="text-align: center;" onclick="javascript:createScript();">创建super用户城市选择框数据</button>
		</div>
		<div style="display: block;">
				<!--  <input type="radio" name="sourceId" value="20000" >深航
				 <input type="radio" name="sourceId" value="20001" >东航
				 <input type="radio" name="sourceId" value="20002" >山航
				 <input type="radio" name="sourceId" value="20003" >川航
				 <input type="radio" name="sourceId" value="20004" >海航
				 <input type="radio" name="sourceId" value="20005" >南航
				 <input type="radio" name="sourceId" value="20006" >国航
				 <input type="radio" name="sourceId" value="20007" >厦航 -->
			<button id="createButton" style="text-align: center;" onclick="javascript:createSingleScript();">创建8个航空公司选择框数据</button>
				
 		<br>
		</div>
		<div>
			<jsp:include page="/inc/flightSelect.jsp"></jsp:include>
		</div>
		<div>
			<button onclick="javascript:feichangzhun();">feichangzhun</button>
		</div>
		<!--   <input type="text" style="width:100px" name="vo.fromCity" id="depCity"  value="" >  -->
		
 		
</body>
</html>